<template>
	<view class="content" v-if="dataInfo">
		<view class="page-top">
			<view class="title-box">
				<view class="title">{{dataInfo.title}}</view>
				<text v-if="dataInfo.status == 1" class="state state1">待进行</text>
				<text v-if="dataInfo.status == 8" class="state state2">进行中</text>
				<text v-if="dataInfo.status == 9" class="state state3">已结束</text>
				<text v-if="dataInfo.status == -1" class="state state3">已取消</text>
				<text v-if="dataInfo.status == 0" class="state state4">待上传</text>
				<text v-if="dataInfo.status == 2 || dataInfo.status == 3" class="state state5">待审核</text>
				<text v-if="dataInfo.status == 21 || dataInfo.status == 31" class="state state6">被驳回</text>
			</view>
			<view class="info-box u-flex">
				<view class="time">
					{{dataInfo.time}}
				</view>
				<view class="user u-flex ">
					<view class="item-img-bg">
						{{strFormat(dataInfo.user&&dataInfo.user.nickname?dataInfo.user.nickname:'')}}</view>
					<!-- <u--image :src="dataInfo.user&&dataInfo.user.avatar?dataInfo.user.avatar:''" shape="circle" width="28rpx" height="28rpx">
					</u--image>
					<text>{{dataInfo.user.nickname}}</text> -->
				</view>
			</view>
		</view>
		<view class="box-part">
			<view class="box-title">
				基本信息
			</view>
			<view class="box-row u-flex u-m-t-15">
				<text>会议类型</text>
				<text>{{dataInfo.type_name}}</text>
			</view>
			<view class="box-row u-flex">
				<text>会议室</text>
				<text>{{dataInfo.room&&dataInfo.room.title?dataInfo.room.title:''}}</text>
			</view>
			<!-- <view class="box-row u-flex">
				<text>物品领取</text>
				<text>{{dataInfo.goods_name}}</text>
			</view> -->
		</view>
		<view class="box">
			<view class="people-box u-flex" @click="gotomeetpeople('attend_meet',dataInfo.attend_meet_ids_user)">
				<view class="box-title">
					参会人 {{dataInfo.attend_meet_ids_user.length}}
				</view>
				<view class="imgs-box u-flex">
					<view class="item-img-bg" v-for="(item,index) in dataInfo.attend_meet_ids_user" v-if="index<5"
						:key="index">{{strFormat(item.nickname)}}</view>
					<!-- <u--image class="user-img" v-for="(item,index) in dataInfo.attend_meet_ids_user" v-if="index<5"
						:key="index" :src="item.avatar" shape="circle" width="40rpx" height="40rpx">
					</u--image> -->
					<u-icon name="arrow-right" color="#666666" size="16"></u-icon>
				</view>
			</view>
			<!-- <view class="people-box  border-bottom"  @click="gotomeetpeople()">
				<view class="u-flex box-between">
					<view class="box-title">
						参会人 {{dataInfo.attend_meet_ids_user.length}}
					</view>
					<view class="sign-box u-flex">
						<text>签到</text>
						<u-icon name="arrow-right" color="#666666" size="16"></u-icon>
					</view>
				</view>
				<view class="prople-num">
					签到 {{dataInfo.qiandao}} I 请假 {{dataInfo.qingajia}} I 缺勤 {{dataInfo.qingajia}}
				</view>
				<view class="imgs-box end u-flex">
					<u--image class="user-img" v-for="(item,index) in dataInfo.attend_meet_ids_user" v-if="index<5" :key="index"
						:src="item.avatar" shape="circle" width="40rpx" height="40rpx">
					</u--image>
					<u-icon name="arrow-right" color="#666666" size="16"></u-icon>
				</view>
			</view> -->
			<view class="people-box u-flex" v-if="dataInfo.type == 1 || dataInfo.type == 2"
				@click="gotomeettopicpeople('attend_topic',dataInfo.attend_topic_ids_user)">
				<view class="box-title">
					议题参与人 {{dataInfo.attend_topic_ids_user.length}}
				</view>
				<view class="imgs-box u-flex">
					<view class="item-img-bg" v-for="(item,index) in dataInfo.attend_topic_ids_user" v-if="index<5"
						:key="index">{{strFormat(item.nickname)}}</view>
					<!-- <u--image class="user-img" v-for="(item,index) in dataInfo.attend_topic_ids_user" v-if="index<5"
						:key="index" :src="item.avatar" shape="circle" width="40rpx" height="40rpx">
					</u--image> -->
					<u-icon name="arrow-right" color="#666666" size="16"
						@click="gotomeettopicpeople('attend_topic',dataInfo.attend_topic_ids_user)"></u-icon>
				</view>
			</view>
			<view class="people-box u-flex"
				v-if="dataInfo.is_faqi == 1 && dataInfo.type == 1 && (dataInfo.status == 1 || dataInfo.status == 8|| dataInfo.status == 9)"
				@click="gotoTopicSort">
				<view class="box-title">
					议题顺序
				</view>
				<view class="imgs-box u-flex">
					<u-input v-model="dataInfo.set_sort" placeholder="请输入议题顺序" inputAlign="right" fontSize="13"
						class="u-flex-input"></u-input>
					<u-icon name="arrow-right" color="#666666" size="16"></u-icon>
				</view>
			</view>
		</view>
		<!-- 审批人 -->
		<div class="sponsor_box" v-show="dataInfo.is_faqi == 1 && dataInfo.check_room_ids != ''">
			<view class="box-title">功能室管理员</view>
			<view class="imgs-box2 u-flex">
				<div class="user-img" v-for="(item,index) in dataInfo.check_room_ids_user">
					<!-- <img :src="item.avatar" shape="circle" />
					{{ item.nickname }} -->
					<view class="item-img-bg">{{strFormat(item.nickname)}}</view>
				</div>
			</view>
		</div>
		<view class="box-part">
			<view class="box-title">
				会议主题
			</view>
			<view class="box-content">
				{{dataInfo.title}}
			</view>
			<view class="box-title">
				会议内容
			</view>
			<view class="box-content">
				{{dataInfo.content}}
			</view>
			<view class="box-title" v-if="dataInfo.files">
				附件
			</view>
			<!--      fuBtn(dataInfo.files.fullurl,dataInfo.files.filename)-->
			<view v-if="dataInfo.files && dataInfo.files" class="file-box u-flex"
				@click.stop="handleDownload(dataInfo.files)">
				<u-icon name="attach" color="#4871C0" size="24"></u-icon>
				<text class="file-content">{{dataInfo.files.filename}}</text>
			</view>
		</view>
		<!-- 审核不通过状态下 -->
		<view class="box-part" v-if="dataInfo.status ==  21 || dataInfo.status ==  31">
			<view class="box-title">
				驳回理由
			</view>
			<view class="reason">
				{{dataInfo.meet_check}}
			</view>
		</view>
		<view v-show="moreAction" class="moreAction">
			<view class="button-item1" v-if="dataInfo.is_faqi===1" @click="quicktipclick()">
				一键提醒
			</view>
			<view class="button-item1"
				v-if="dataInfo.is_faqi == 1 && dataInfo.sign_way == 2 && (dataInfo.status == 1 || dataInfo.status == 8 || dataInfo.status == 9)"
				@click="goscan()">
				下载签到二维码
			</view>
			<view class="button-item1"
				v-if="dataInfo.sign_way > 0 && dataInfo.is_faqi == 1 && (dataInfo.status == 1 || dataInfo.status == 8 || dataInfo.status == 9)"
				@click="dosignListOut()">
				导出签到
			</view>
			<view class="button-item1"
				v-if="dataInfo.have_goods == 1 && (dataInfo.status == 1 || dataInfo.status == 8 || dataInfo.status == 9)"
				@click="goodsSign()">
				领取物品签到
			</view>
			<view class="button-item1"
				v-if="dataInfo.is_faqi == 1 && dataInfo.have_goods == 1 && (dataInfo.status == 1 || dataInfo.status == 8 || dataInfo.status == 9)"
				@click="dogoodsListOut()">
				导出物品签到
			</view>
			<view class="button-item1"
				v-if="dataInfo.is_faqi == 1 && dataInfo.type == 1 && (dataInfo.status == 1 || dataInfo.status == 8 || dataInfo.status == 9)"
				@click="doyitiListOut()">
				导出议题
			</view>
			<view class="button-item1"
				v-if="dataInfo.is_faqi == 1 && dataInfo.type == 1 && (dataInfo.status == 1 || dataInfo.status == 8 || dataInfo.status == 9)"
				@click="gotopicDetails()">
				议题提交记录
			</view>
			<view class="button-item1"
				v-if=" dataInfo.type == 3 && (dataInfo.status == 1 || dataInfo.status == 8 || dataInfo.status == 9)"
				@click="gotoPlan()">
				部门工作计划
			</view>
			<view class="button-item1"
				v-if=" dataInfo.is_faqi ===1 && dataInfo.type == 3 && (dataInfo.status == 1 || dataInfo.status == 8 || dataInfo.status == 9)"
				@click="gotoMyTopics()">
				周计划截至时间
			</view>
			<view class="button-item1"
				v-if="dataInfo.is_faqi == 1 && dataInfo.type == 3 && (dataInfo.status == 1 || dataInfo.status == 8 || dataInfo.status == 9)"
				@click="doweekListOut()">
				导出周反馈
			</view>
			<view class="button-item1"
				v-if="dataInfo.is_faqi == 1 && dataInfo.type == 3 && (dataInfo.status == 1 || dataInfo.status == 8 || dataInfo.status == 9)"
				@click="doplanListOut()">
				导出周计划
			</view>
			<view class="button-item1"
				v-if="(dataInfo.type == 5 || dataInfo.type == 4) && dataInfo.is_record != 1"
				@click="uploadRecord()">
				上传会议记录
			</view>

			<view class="button-item1" style="width: 40%;" v-if=" dataInfo.is_record == 1"
				@click="lookRecord()">
				上传会议记录
			</view>
			<view class="button-item1" v-if="dataInfo.type == 5 && (dataInfo.status == 8 || dataInfo.status == 9)"
				@click="lookr()">
				查看会议记录
			</view>
			<view class="button-item1" v-if="dataInfo.is_qianfa == 1 && dataInfo.is_jiyao >= 1"
				@click="gotomeetingMinutes()">
				审核会议纪要
			</view>
			<view class="button-item1 color-blue"
				v-if="dataInfo.type == 3 && (dataInfo.status == 1 || dataInfo.status == 8 || dataInfo.status == 9)"
				@click="gowork">
				查看工作计划
			</view>
			<view class="button-item1 color-blue"
				v-if="dataInfo.is_faqi == 1 && dataInfo.type == 3 && (dataInfo.status == 1 || dataInfo.status == 8 || dataInfo.status == 9)"
				@click="gowork2">
				交办事项
			</view>
			<view class="button-item1"
				v-if="(dataInfo.is_yiti==1 ||  dataInfo.is_faqi==1) && dataInfo.type == 1 && dataInfo.is_topic==0"
				@click="gotouploadTopics()">
				上传议题
			</view>
			<view class="button-item1"
				v-if="(dataInfo.is_yiti==1 ||  dataInfo.is_faqi==1) && dataInfo.type == 1 && dataInfo.is_topic==1"
				@click="gotoTopics()">
				<text>查看上传议题</text>
			</view>
			<!--发起人 待进行-->
			<view class="button-item1" v-if="dataInfo.is_faqi == 1 && dataInfo.status == 1"
				@click="showCancelmeeting = true">
				取消会议
			</view>
			<view class="button-item1" v-if="dataInfo.is_faqi == 1 && dataInfo.status == 9 && dataInfo.is_jiyao == 0"
				@click="uploadmeetingMinutes()">
				上传会议纪要
			</view>
			<view class="button-item1" v-if="dataInfo.is_faqi == 1 && dataInfo.status == 9 && dataInfo.is_jiyao >= 1"
				@click="gomeetingMinutes()">
				修改会议纪要
			</view>

			<!-- 参与人   已结束 -->
			<view class="button-item1" v-if="dataInfo.is_canhui == 1 && dataInfo.status == 9"
				@click="goshowmeetingMinutes()">
				<!-- 下载会议纲要 -->
				查看会议纪要
			</view>
			<view v-if="dataInfo.is_sign == 1" class="button-item1 color-blue">
				已签到
			</view>


		</view>
		<view class="button u-flex">
			<view class="button-item" @click="moreAction=!moreAction">更多</view>
      <view class="button-item" v-if="dataInfo.is_collector== 1" @click="toShouji()">
        议题收集
      </view>
			<!--发起人 草稿箱 --><!--发起人 被驳回  审核员驳回，-->
			<view class="button-item" v-if="dataInfo.is_faqi == 1 && (dataInfo.status == 0||dataInfo.status == 21)" @click="show1 = true">
				删除会议
			</view>
			<!--发起人 被驳回 审核员驳回，-->
			<view class="button-item" @click="editMeeting()" v-if="dataInfo.check_room_ids != '' && dataInfo.is_faqi == 1 && (  dataInfo.status == 0||dataInfo.status == 1 || dataInfo.status == 21)">
				修改会议
			</view>
			<!-- 参与人   进行中 -->
			<view
				v-if="dataInfo.sign_way > 0 && dataInfo.is_shenhe == 0 && dataInfo.is_sign != 1 && (dataInfo.status == 8 || dataInfo.status == 1)"
				class="button-item color-blue" @click="signIn()">
				签到
			</view>
			<!-- 管理员 待审核 -->
			<view class="button-item" v-if="(dataInfo.is_shenhe == 1 && dataInfo.status == 2)&&isbohui"
				@click="showbh = true">
				驳回
			</view>
			<view class="button-item color-blue" v-if="dataInfo.is_shenhe == 1 && dataInfo.status == 2"
				@click="showtg = true">
				通过
			</view>
			<!--发起人 待审核 -->
			<view v-if="dataInfo.is_faqi == 1 && dataInfo.status == 2" class="button-item color-blue"
				@click="show = true">
				取消审核
			</view>
			<view class="button-item color-blue"
				v-if="dataInfo.is_shenhe == 1 && (dataInfo.status == 1 || dataInfo.status == 8 || dataInfo.status == 9)">
				已审核通过
			</view>
			<!-- 参与人   进行中 已结束-->
			<view class="button-item"
				v-if="dataInfo.type == 1 && (dataInfo.is_faqi == 1 || dataInfo.is_yiti == 1 || dataInfo.is_canhui == 1 || dataInfo.is_xiaozhang == 1) && (dataInfo.status == 1|| dataInfo.status == 8 || dataInfo.status == 9)"
				@click="gototopicDetails()">
				查看议题
			</view>
			<view class="button-item" v-if="dataInfo.status == -1 || dataInfo.status == 9" @click="cloneMeet()">
				克隆会议
			</view>
		</view>
		<!-- 取消审核弹窗 -->
		<u-modal :show="show" @confirm="confirm" @cancel="show = false" ref="uModal" title="取消审核确认" content="是否确认取消审核？"
			confirmText="确定" :showCancelButton="true">
		</u-modal>

		<!-- 取消会议 -->
		<u-modal :show="showCancelmeeting" @confirm="confirmCancelmeeting" @cancel="showCancelmeeting = false"
			ref="uModal" title="取消会议确认" content="是否确认取消会议？" confirmText="确定" :showCancelButton="true">
			<view class="slot-content reason-content">
				<u--textarea v-model="quxiaoreason" height="100" placeholder="请输入取消会议理由~" border="surround"
					confirmType="done">
				</u--textarea>
			</view>
		</u-modal>

		<!-- 删除弹窗 -->
		<u-modal :show="show1" @confirm="confirm1" @cancel="show1 = false" ref="uModal1" content="删除确认？"
			confirmText="确定" :showCancelButton="true"></u-modal>
		<!-- 驳回弹窗 -->
		<u-modal :show="showbh" @confirm="confirm2" @cancel="showbh = false" ref="uModal" title="驳回理由" confirmText="确定"
			:showCancelButton="true">
			<view class="slot-content reason-content">
				<u--textarea v-model="reason" height="100" placeholder="请驳回理由~" border="surround" confirmType="done">
				</u--textarea>
			</view>
		</u-modal>
		<!-- 通过弹窗 -->
		<u-modal :show="showtg" @confirm="confirm3" @cancel="showtg = false" ref="uModal1" content="是否确认通过该项审批？"
			title="通过确认" confirmText="确定" :showCancelButton="true"></u-modal>

		<!-- 签到弹窗 -->
		<u-overlay :show="show2" @click="show2= false">
			<view class="warp">
				<view class="rect" @tap.stop>
					<img class="bg-img" src="@/static/img/pupop_icon.png" />
					<u-icon class="clsoe" name="close" color="#D9D9D9" size="22" @click="show2= false"></u-icon>
					<!-- 准时签到 -->
					<view class="warp-content">
						<text>感谢您</text>
						<text>准时参与本次会议！</text>
						<text class="warp-button" @click="signIn">签到</text>
					</view>
					<!-- 迟到签到 -->
					<!-- <view class="warp-content">
					<text>很抱歉</text>
					<text>准时参与本次会议！</text>
					<text class="warp-button warp-button2">迟到签到</text>
				</view> -->
					<!-- 缺勤会议 -->
					<!-- <view class="warp-content">
						<text>很遗憾</text>
						<text>你缺勤了本次会议！</text>
						<text class="warp-button" @click="show2= false">我知道了</text>
					</view> -->
				</view>
			</view>
		</u-overlay>
	</view>
</template>

<script>
	import {
		getMeetDetails,
		cancelApproval,
		deleteMeet,
		auditMeet,
		signInMeet,
		cancelMeeting,
		cloneMeet,
		goodsListOut,
		signListOut,
		yitiListOut,
		weekListOut,
		planListOut,
		sendNotice,
    gettopicsMeet
	} from '@/api/meetApi.js'
	export default {
		data() {
			return {
				id: '',
				show: false,
				show1: false,
				show2: false,
				showbh: false,
				showtg: false,
				showCancelmeeting: false,
				dataInfo: {
					user: {
						avatar: ''
					},
				},
				reason: '',
				sign_way: '',
				quxiaoreason: '',
				isbohui: true, //驳回按钮
				moreAction:false
			};
		},
		onLoad(options) {
			this.id = options.id;
			this.$store.dispatch('handleWxConfig')
		},
		onShow() {
			this.show2 = false
			this.getData();
		},
		methods: {
			strFormat(str) {
				if (str.length > 3) {
					return str.substring(0, 3) + '...';
				} else {
					return str
				}
			},
			//一键提醒
			quicktipclick() {
				this.isLoading = true;
				let params = {
					meet_id: this.dataInfo.id
				};
				sendNotice(params).then(res => {
					this.isLoading = false;
					this.$toast('发送成功');
				})
			},
			goscan() {
				uni.navigateTo({
					url: '/pages/tabbar-1-detial/sign/qrcode?id=' + this.dataInfo.id
				});
			},
			gotopicDetails() {
				uni.navigateTo({
					url: '/pages/tabbar-3-detial/topicDetails/topicDetails?id=' + this.dataInfo.id
				});
			},
			dosignListOut() {
				this.isLoading = true;
				let params = {
					meet_id: this.dataInfo.id
				};
				signListOut(params).then(res => {
					this.isLoading = false;
					this.qr_url = res.data.qr_url;
					res.data.mimetype = 'application'
					this.handleDownload(res.data)
				})
			},
			gotoMyTopics(){
				uni.navigateTo({
					url: '/pages/tabbar-1-detial/uploadTopics/myTopics?id=' + this.dataInfo.id
				});
			},
			goodsSign() {
				uni.navigateTo({
					url: '/pages/tabbar-1-detial/sign/goods?meet_id=' + this.dataInfo.id
				});
			},
			uploadRecord() {
				uni.navigateTo({
					url: '/pages/tabbar-1-detial/meetingRecord/uploadRecord?id=' + this.dataInfo.id
				});
			},
			lookr() {
				uni.navigateTo({
					url: '/pages/tabbar-1-detial/meetingRecord/meetingRecord?id=' + this.dataInfo.id
				});
			},
			lookRecord() {
				uni.navigateTo({
					url: '/pages/tabbar-1-detial/meetingRecord/recordDetail?id=' + this.dataInfo.id
				});
			},
			// 会议纪要
			gotomeetingMinutes() {
				uni.navigateTo({
					url: '/pages/tabbar-3-detial/meetingMinutes/meetingMinutes?id=' + this.dataInfo.id,
				});
			},
			// 上传议题
			gotouploadTopics(id) {
        let params = {
          meet_id:this.dataInfo.id
        }
        gettopicsMeet(params).then(res => {
          if(res.code=='1'){
            if(res.data.can=='1'){
              uni.navigateTo({
                url: '/pages/tabbar-1-detial/uploadTopics/uploadTopics?id=' + this.dataInfo.id
              });
            }else{
              uni.showToast({
                title: '上传议题时间已截止',
                icon: "none",
                duration: 1000
              });
            }
          }
        })

			},
			// 议题详情
			gotoTopics() {
        uni.navigateTo({
          url: '/pages/tabbar-1-detial/topics/topics?id=' + this.dataInfo.id
        });
			},
      toShouji(){
        uni.navigateTo({
          url: '/pages/tabbar-1-detial/topics/shoujiTopics?id=' + this.dataInfo.id
        });
      },
			dogoodsListOut() {
				this.isLoading = true;
				let params = {
					meet_id: this.dataInfo.id
				};
				goodsListOut(params).then(res => {
					this.isLoading = false;
					this.qr_url = res.data.qr_url;
					res.data.mimetype = 'application'
					this.handleDownload(res.data)
				})
			},
			doyitiListOut() {
				this.isLoading = true;
				let params = {
					meet_id: this.dataInfo.id
				};
				yitiListOut(params).then(res => {
					this.isLoading = false;
					this.qr_url = res.data.qr_url;
					res.data.mimetype = 'application'
					this.handleDownload(res.data)
				})
			},
			doweekListOut() {
				this.isLoading = true;
				let params = {
					meet_id: this.dataInfo.id
				};
				weekListOut(params).then(res => {
					this.isLoading = false;
					this.qr_url = res.data.qr_url;
					res.data.mimetype = 'application'
					this.handleDownload(res.data)
				})
			},
			doplanListOut() {
				this.isLoading = true;
				let params = {
					meet_id: this.dataInfo.id
				};
				planListOut(params).then(res => {
					this.isLoading = false;
					this.qr_url = res.data.qr_url;
					res.data.mimetype = 'application'
					this.handleDownload(res.data)
				})
			},
			gotoPlan() {
				uni.navigateTo({
					url: '/pages/feedback/feedback?meet_id=' + this.dataInfo.id
				});
			},
			getData() {
				this.isLoading = true;
				let params = {
					id: this.id
				};
				getMeetDetails(params).then(res => {
					this.isLoading = false;
					uni.stopPullDownRefresh();

					this.dataInfo = res.data;
					if (this.dataInfo.is_sign === 0 && this.dataInfo.sign_way > 0 && this.dataInfo.is_shenhe ==1 &&(this.dataInfo.status==1||this.dataInfo.status==8)) {
						this.show2 = true
					} else {
						this.show2 = false
					}
					console.log("getMeetDetails数据", res, this.dataInfo)
				})
			},
			// 点击附件预览
			handleDownload(item) {
				console.log("=====item", item)
				let params = {
					url: item.fullurl, // 需要预览文件的地址(必填，可以使用相对路径)
					name: item.filename, // 需要预览文件的文件名(不填的话取url的最后部分)
					size: item.filesize, // 需要预览文件的字节大小(必填)
					type: item.mimetype
				}
				this.$store.dispatch('yulan', params)
			},
			fuBtn(url, name) {
				//废弃
				uni.navigateTo({
					url: '/pages/yulan/yulan?url=' + url + '&typeName=' + name
				});
				// uni.openDocument({
				// 	filePath: url,
				// 	showMenu: true,
				// 	success: function(res) {}
				// });
				// uni.downloadFile({
				// 	url:this.$httpApi+'/uploads/20220816/84c7dbe6e6a99dc2f20adcc5ed371bc0.doc',
				// 	success: function (res) {
				// 		console.log("h哈哈哈：",res)
				// 		let filePath = res.tempFilePath;
				// 		if (res.statusCode === 200) {
				// 			let filePath = res.tempFilePath;
				// 			uni.openDocument({
				// 				filePath: filePath,
				// 				showMenu: true,
				// 				success: function (res) {}
				// 			});
				// 		}
				// 	}
				// });
			},
			// 取消审核
			confirm() {
				this.isLoading = true;
				let params = {
					status: "-1",
					id: this.dataInfo.id
				};
				cancelApproval(params).then(res => {
					this.isLoading = false;
					if (res.code == 1) {
						this.show = false;
						this.getData();
					}
					uni.showToast({
						title: res.msg,
						icon: 'none',
						duration: 1000
					});
				})
			},
			// 删除
			confirm1() {
				this.isLoading = true;
				let params = {
					id: this.dataInfo.id
				};
				deleteMeet(params).then(res => {
					this.isLoading = false;
					uni.showToast({
						title: res.msg,
						icon: 'none',
						duration: 1000
					});
					if (res.code == 1) {
						this.show1 = false;
						uni.navigateBack({
							delta: 1
						});
					}
				})
			},
			// 驳回会议
			confirm2() {
				this.isLoading = true;
				let params = {
					meet_id: this.dataInfo.id,
					status: 0,
					content: this.reason
				};
				auditMeet(params).then(res => {
					this.isLoading = false;
					this.isbohui = false
					uni.showToast({
						title: res.msg,
						icon: 'none',
						duration: 1000
					});
					if (res.code == 1) {
						this.showbh = false;
						this.getData();
					}
				})
			},
			// 克隆会议
			cloneMeet() {
				this.isLoading = true;
				let params = {
					id: this.dataInfo.id
				};
				cloneMeet(params).then(res => {
					this.isLoading = false;
					uni.showToast({
						title: res.msg,
						icon: 'none',
						duration: 1000
					});
					if (res.code == 1) {
						this.showtg = false;
						this.getData();
					}
				})
			},
			// 通过会议
			confirm3() {
				this.isLoading = true;
				let params = {
					meet_id: this.dataInfo.id,
					status: 1
				};
				auditMeet(params).then(res => {
					this.isLoading = false;
					uni.showToast({
						title: res.msg,
						icon: 'none',
						duration: 1000
					});
					if (res.code == 1) {
						this.showtg = false;
						this.getData();
					}
				})
			},
			// 取消会议
			confirmCancelmeeting() {
				this.isLoading = true;
				let params = {
					id: this.dataInfo.id,
					cancel_reason: this.quxiaoreason
				};
				cancelMeeting(params).then(res => {
					this.isLoading = false;
					uni.showToast({
						title: res.msg,
						icon: 'none',
						duration: 1000
					});
					if (res.code == 1) {
						this.showCancelmeeting = false;
						this.getData();
					}
				});
			},
			// 签到
			signIn() {
				if (this.dataInfo.sign_way === 2) {
					//  二维码签到
					window.wx.scanQRCode({
						desc: 'scanQRCode desc',
						needResult: 0, // 默认为0，扫描结果由企业微信处理，1则直接返回扫描结果，
						scanType: ["qrCode", "barCode"], // 可以指定扫二维码还是条形码（一维码），默认二者都有
						success: function(res) {
							// 回调
							var result = res.resultStr; //当needResult为1时返回处理结果
							console.log("========resultStr", result)
						},
						error: function(res) {
							if (res.errMsg.indexOf('function_not_exist') > 0) {
								this.$toast('版本过低请升级');
							}
						}
					})

				}
				if (this.dataInfo.sign_way === 1) {
					//手写签名
					uni.navigateTo({
						url: '/pages/tabbar-1-detial/sign/autograph?meet_id=' + this.dataInfo.id
					});
				}
			},
			// 查看议题
			gototopicDetails() {
				uni.navigateTo({
					url: '/pages/tabbar-1-detial/topicDetails/topicDetails?id=' + this.dataInfo.id
				});
			},
			// 会议纪要
			gomeetingMinutes() {
				uni.navigateTo({
					url: '/pages/tabbar-1-detial/meetingMinutes/meetingMinutes?id=' + this.dataInfo.id
				});
			},
			uploadmeetingMinutes() {
				uni.navigateTo({
					url: '/pages/tabbar-1-detial/uploadMeetingRecord/uploadMeetingRecord?id=' + this.dataInfo.id
				});
			},
			// 人员
			gotomeetpeople(type, user) {
				uni.navigateTo({
					url: '/pages/tabbar-3-detial/meetpeople/meetpeople?type=' + type + '&id=' + this.dataInfo.id + '&is_faqi=' + this.dataInfo.is_faqi
				});
				uni.setStorageSync('meet_people_list', user);
			},
			// 人员
			gotomeettopicpeople(type, user) {
				uni.navigateTo({
					url: '/pages/tabbar-3-detial/meetpeople/meettopicpeople?type=' + type + '&id=' + this.dataInfo
						.id
				});
				uni.setStorageSync('meet_people_list', user);
			},
			// 查看会议纪要
			goshowmeetingMinutes() {
				uni.navigateTo({
					url: '/pages/tabbar-1-detial/showmeetingMinutes/showmeetingMinutes?id=' + this.dataInfo.id
				});
			},
			// 查看工作计划
			gowork() {
				uni.navigateTo({
					url: '/pages/feedback/list?id=' + this.dataInfo.id
				});
			},
			gowork2() {
				uni.navigateTo({
					url: '/pages/feedback/feedback-edit?id=' + this.dataInfo.id
				});
			},
			//修改会议
			editMeeting() {
				uni.navigateTo({
					url: '/pages/tabbar/meeting-room/add/editPartyConference?id=' + this.dataInfo.id +
						'&room_id=' + this.dataInfo.room_id
				});
			},
			//编辑议题顺序
			gotoTopicSort() {
				uni.navigateTo({
					url: '/pages/tabbar-1-detial/meetingDetails/component/mettingsortEdit?id=' + this.id
				})
			}
		}

	};
</script>

<style>
	.content {
		background-color: #F8F8F8;
		min-height: 100vh;
		padding-bottom: 150rpx;
	}

	.u-flex {
		display: flex;
		align-items: center;
	}

	.imgs-box {
		flex: 1;
		justify-content: flex-end;
	}

	.page-top {
		padding: 30rpx;
		background-color: #fff;
	}

	.title-box {
		display: flex;
		align-items: center;
		/* justify-content: space-between; */
	}

	.title {
		font-size: 36rpx;
		font-weight: bold;
		color: #333333;
		/* width: 80%; */
	}

	.state {
		font-size: 24rpx;
		font-weight: 500;
		padding: 10rpx 12rpx;
	}

	.state1 {
		color: #8B48C0;
		background: #F8EEFF;
		border-radius: 8rpx;
		opacity: 1;
	}

	.state2 {
		color: #FF7A00;
		background: #FFECDA;
		border-radius: 8rpx;
		opacity: 1;
	}

	.state1 {
		color: #8B48C0;
		background: #F8EEFF;
		border-radius: 8rpx;
		opacity: 1;
	}

	.state2 {
		color: #4871C0;
		background: #EBF1FD;
		border-radius: 8rpx;
		opacity: 1;
	}

	.state3 {
		color: #999999;
		background: #F5F2F5;
		border-radius: 8rpx;
		opacity: 1;
	}

	.state4 {
		color: #26B167;
		background: #F2FFF8;
		border-radius: 8rpx;
		opacity: 1;
	}

	.state5 {
		color: #FA6161;
		background: #FFF0F0;
		border-radius: 8rpx;
		opacity: 1;
	}

	.state6 {
		color: #FF7A00;
		background: #FFECDA;
		border-radius: 8rpx;
		opacity: 1;
	}

	.info-box {
		margin-top: 24rpx;
	}

	.time {
		font-size: 24rpx;
		font-weight: 500;
		color: #666666;
		margin-right: 30rpx;
	}

	.user text {
		font-size: 24rpx;
		font-weight: 500;
		color: #4871C0;
		margin-left: 10rpx;
	}

	.box-part {
		margin-top: 20rpx;
		background-color: #fff;
		padding: 30rpx 30rpx 10rpx 30rpx;
	}

	.box-title {
		font-size: 28rpx;
		font-weight: bold;
		color: #333333;
	}

	.box-row {
		justify-content: space-between;
		padding: 20rpx 0;
	}

	.box-row text:first-child {
		font-size: 28rpx;
		font-weight: 500;
		color: #666666;
	}

	.box-row text:last-child {
		font-size: 28rpx;
		font-weight: 500;
		color: #333333;
	}

	.box {
		background-color: #fff;
		margin-top: 20rpx;
	}

	.people-box {
		justify-content: space-between;
		padding: 30rpx;
	}

	.people-box:first-child {
		border-bottom: 2px solid #F8F8F8;
	}

	.user-img {
		margin-right: 20rpx;
	}

	.item-img-bg {
		margin-right: 20rpx;
		width: 80rpx;
		height: 80rpx;
		border-radius: 50%;
		background-color: #4871C0;
		color: #ffffff;
		font-size: 20rpx;
		text-align: center;
		line-height: 80rpx;
	}

	.box-content {
		font-size: 28rpx;
		font-weight: 500;
		color: #666666;
		padding: 30rpx 0;
		border-bottom: 2px solid #F8F8F8;
		margin-bottom: 20rpx;
	}

	.file-box {
		margin: 20rpx 0;
		padding: 20rpx;
		background: #F8F9FC;
		border-radius: 16rpx;
		opacity: 1;
		font-size: 28rpx;
		font-weight: 500;
		color: #4871C0;
	}

	.button {
		position: fixed;
		left: 0;
		bottom: 0;
		width: 100%;
		text-align: center;
		padding: 30rpx 0 40rpx 0;
		background-color: #fff;
		font-size: 28rpx;
		font-weight: 500;
		color: #999999;
		flex-wrap: wrap;
		justify-content: space-around;
	}

	.reason {
		font-size: 28rpx;
		font-weight: 500;
		color: #666666;
		padding: 30rpx 0;
	}

	.button-item {
		/* width: 50%; */
		text-align: center;
		color: #999999;
	}
     .moreAction{
		 border-radius: 16rpx;
		 background-color: #ffffff;
		 position: fixed;
		 bottom:130rpx;
		 left: 10rpx;
		 width: 230rpx;
		 border: 1px solid #dddddd;
	 }
	 .moreAction::after{
	 	 content: '';
	 	 bottom:-20rpx;
		 left: 20rpx;
	 	 position: absolute;
	 	 width: 0;
	 	 height: 0;
	 	 border-top: 20rpx solid #f5f5f5;
	 	 border-right: 20rpx solid transparent;
	 	 border-left: 20rpx solid transparent;
	  }
	.button-item1 {
		text-align: center;
		font-size: 26rpx;
		font-weight: 500;
		color: #333333;
		margin:0 36rpx;
		padding: 26rpx 0;
		border-bottom: 1px solid #F1F1F1;
	}

	.color-blue {
		color: #4871C0 !important;
	}

	/deep/ .u-modal__content {
		text-align: center !important;
	}

	.reason-content {
		width: 100%;
		border-radius: 8rpx;
		opacity: 1;
	}

	/deep/ .u-modal__content {
		text-align: center !important;
	}

	/deep/.u-textarea {
		background: #F8F8F8;
		border-radius: 8rpx;
		opacity: 1;
		text-align: left;
	}

	/deep/.uni-textarea-placeholder {
		text-align: left;
		font-size: 28rpx;
		font-weight: 500;
		color: #999999;
	}

	.rect {
		width: 638rpx;
		height: 588rpx;
		margin: 50% auto;
		text-align: center;
		position: relative;
	}

	.bg-img {
		width: 638rpx;
		height: 588rpx;
	}

	.warp-content {
		width: 100%;
		position: absolute;
		top: 48%;
		right: 0;
		display: flex;
		flex-direction: column;
		font-size: 36rpx;
		font-weight: bold;
		color: #666666;
		line-height: 60rpx;
	}

	.warp-button {
		width: 356rpx;
		height: 87rpx;
		line-height: 87rpx;
		text-align: center;
		background: #4871C0;
		border-radius: 16rpx;
		opacity: 1;
		font-size: 32rpx;
		font-weight: 500;
		color: #FFFFFF;
		margin: 40rpx auto;
	}

	.clsoe {
		position: absolute;
		right: 30rpx;
		top: 22%;
	}

	.warp-button2 {
		background: #FF7A00;
	}

	.sign-box {
		font-size: 28rpx;
		font-weight: 500;
		color: #999999;
	}

	.file-content {
		width: 90%;
		word-break: break-all;
	}

	.box-between {
		justify-content: space-between;
	}

	.sign-box {
		font-size: 28rpx;
		font-weight: 500;
		color: #999999;
	}

	.prople-num {
		font-size: 28rpx;
		font-weight: 500;
		color: #4871C0;
		text-align: right;
		margin: 30rpx 0;
	}

	.end {
		justify-content: end;
	}

	.push-button {
		font-size: 28rpx;
		font-weight: 500;
		color: #999999;
	}

	.sponsor_box {
		width: 100%;
		background: #fff;
		padding: 10px 15px;
		box-sizing: border-box;
		margin-top: 20rpx;
		/* /deep/ .u-upload__button {
			width: 38px !important;
			height: 38px !important;
		} */
	}

	.imgs-box2 {
		display: flex;
		flex-direction: row;
		flex-flow: wrap;
		margin-top: 20px;
	}

	.user-img2 {
		height: 40px;
		padding-right: 20rpx;
		line-height: 40px;
		background: #F2F4F3;
		border-radius: 4px 4px 4px 4px;
		position: relative;
		margin-right: 20px;
		margin-bottom: 20px;
		display: flex;
		flex-direction: row;
		justify-content: start;
		align-items: center;

	}


	.user-img2 img {
		margin: 2px;
		width: 35px;
		height: 35px;
		margin-right: 5px;
		border-radius: 4px 4px 4px 4px;
	}
</style>
